package cn.liufuwen;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
/**
 * ServiceProviderApplication
 * 服务提供启动类
 */
@EnableDubbo //开启dubbo服务
@SpringBootApplication
public class ServiceProviderApplication 
{
	public static void main(String[] args) {
		SpringApplication.run(ServiceProviderApplication.class, args);
	}
	//为了打包springboot项目
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }

}
